ballistic pendulum problem